import { createApp } from 'vue'
import './style.css'
import Antd from 'ant-design-vue';
import App from '@/App.vue'
import 'ant-design-vue/dist/reset.css';
import { createPinia } from 'pinia';
import router from '@/router';
import * as echarts from 'echarts';
import http from '@/api/http';

const app = createApp(App);

// 全局挂载echarts
app.config.globalProperties.$echarts = echarts;
// 全局挂载axios实例
app.config.globalProperties.$http = http;

app.use(Antd)
   .use(createPinia())
   .use(router)
   .mount('#app');
